

import rpa as r
import shitu as shitu
import pyautogui

r.init()
r.url('https://www.google.com.hk')
r.type('//*[@name="q"]', 'decentralization')
shitu.imgAutoCick('google-button.png', pyautogui.click)
shitu.imgAutoCick('456.png', pyautogui.click, False)
print(r.read('result-stats'))
r.snap('page', 'results.png')
r.close()